﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    enum menu 
    {
        青龙过海,
        剁椒鱼头,
        碳烤素串
    }
    class CookRobot : Robot
    {
        private menu Ttype;
        public CookRobot(string name, menu ttype) : base(name)
        {
            base.name = name;
            this.Ttype = ttype;
        }
        public CookRobot() { }
        public override void Working()
        {
            Console.WriteLine("我是炒菜机器人{0},你要炒的菜是{1}。", base.name, this.Ttype);
        }
    }
}
